import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import 'package:zchope_student/main/mainpage.dart';
import 'login/login.dart';
import 'main.dart';

class Routes {
  static Router router;
  static String rootPage = '/';
  static String login = '/login/login';
  static String mainpage = '/mainpage/mainpage';


  static var loginHandler = Handler(
      handlerFunc: (BuildContext context, Map<String, List<String>> params) {
        return Login();
      });
 static var mainPageHandler = Handler(
      handlerFunc: (BuildContext context, Map<String, List<String>> params) {
        return MainPage();
      });


  static void configureRoutes(Router router) {
    router.define(rootPage,
        handler: Handler(handlerFunc: (context, params) => PageRoot()));

    router.define(login, handler: loginHandler);
    router.define(mainpage, handler: mainPageHandler);
    Routes.router = router;
  }
}
